<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>企业基本信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
<%--		<li><a href="${ctx}/mess/messHall/">企业基本信息列表</a></li>--%>
		<li class="active"><a href="${ctx}/mess/messHall/index?id=${messHall.id}">每周菜谱<shiro:hasPermission name="mess:messHall:edit">${not empty entinfo.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="mess:messHall:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="searchForm" action="${ctx}/mess/messHall/index" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<%--		<div>--%>
<%--			<label>操作菜单：</label><input id="title" name="title" type="text" maxlength="50" class="input-mini" value="${log.title}"/>--%>
<%--			<label>用户ID：</label><input id="createBy.id" name="createBy.id" type="text" maxlength="50" class="input-mini" value="${log.createBy.id}"/>--%>
<%--			<label>URI：</label><input id="requestUri" name="requestUri" type="text" maxlength="50" class="input-mini" value="${log.requestUri}"/>--%>
<%--		</div><div style="margin-top:8px;">--%>
		<label>日期范围：&nbsp;</label><input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
										 value="<fmt:formatDate value="${log.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
		<label>&nbsp;--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
																	value="<fmt:formatDate value="${log.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>&nbsp;&nbsp;
<%--		&nbsp;<label for="exception"><input id="exception" name="exception" type="checkbox"${log.exception eq '1'?' checked':''} value="1"/>只查询异常信息</label>--%>
		&nbsp;&nbsp; <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
		   <input id="btnSubmit1" class="btn btn-primary" type="submit" value="重置"/>&nbsp;&nbsp;
		   <input id="btnSubmit2" class="btn btn-primary" type="submit" value="菜谱维护"/>&nbsp;&nbsp;
	</div>
	</form:form>
	<sys:message content="${message}"/>


	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
		<tr>
			<th>菜谱</th>
			<th>发布时间</th>
			<shiro:hasPermission name="mess:messHall:edit"><th>操作</th></shiro:hasPermission>
		</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="messHall">
			<tr>
				<td>
						${messHall.categoryMap}
				</td>

				<td><a href="${ctx}/mess/messHall/index?id=${messHall.id}">
					<fmt:formatDate value="${messHall.planDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</a></td>



				<shiro:hasPermission name="mess:messHall:edit"><td>
					<a href="${ctx}/mess/messHall/?id=${messHall.id}">详情</a>
					<a href="${ctx}/mess/messHall/form?id=${messHall.id}" onclick="return confirmx('确认要删除该企业基本信息吗？', this.href)">编辑</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>

	</table>
</body>
</html>